<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            font-size:30px;
            color:red
        }
    </style>
</head>
<body>
    <div> eih</div>
    <img src="myImg" style="width:100px;height:100px"/>
    <button type="button" onclick="openHmPhoto()">打开相册</button>


    <script>
        function openHmPhoto(){
            window.swift.openPhoto()
        }

        function setImageUrl(url){
            document.querySelector('#myImg').src = url
        }
    </script>
</body>
</html>